#!/bin/bash
echo "接收到的参数：$*"
#n=$2
#if [ $2 -eq '' ]; then
#n='-n 1'
#fi
cd /home/dragon/student_playwright_pytest_allure
#/usr/local/bin/pipenv shell
/usr/local/bin/pdm run pytest -n 1 $* --screenshot only-on-failure --alluredir allure-results --clean-alluredir --reruns 2 --reruns-delay 5
/usr/local/bin/allure generate allure-results -c -o allure-report
/usr/local/bin/pdm run python3 utils/fswebhook.py
